<docs>
  ## subConfirm 投递简历提示

</docs>
<template>
  <transition name="confirm">
    <div class="confirm" v-show="visible" @click="hide">
      <div class="container-wrap">
          <div class="close" @click="hide">
            <i class="iconfont icon-close"></i>
          </div>

        <div class="container" @click.stop>
          <div class="container-cen">
            <img src="~common/images/person_pic.png" alt class="person_pic" />
            <p>
              <span class="span_xm">{{jlxx.jlmc}}</span>
              <span class="span_xq" @click="link">简历详情</span>
            </p>
          </div>
          <button class="btn-sure" @click="toudi">确认投递</button>
          <div class="remind">
            <div class="weui-cells weui-cells_checkbox">
              <label class="weui-cell weui-check__label" for="s11">
                <div class="weui-cell__hd">
                  <input
                    type="checkbox"
                    class="weui-check"
                    name="checkbox1"
                    id="s11"
                    v-model="checked"
                  />
                  <i class="weui-icon-checked"></i>
                </div>
                <div class="weui-cell__bd">
                  <p>当天不再提醒</p>
                </div>
              </label>
            </div>
          </div>
        </div>
      </div>
    </div>
  </transition>
</template>
<script>
export default {
  name: "subConfirm",
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    jlxx: {
      type: Object
    }
  },
  data() {
    return {
      checked: false
    };
  },
  methods: {
    hide() {
      this.$emit("update:visible", false);
    },
    //点击简历详情
    detailsHandle(event) {
      this.visible = false;
      this.$emit("cancle", event);
    },
    // 点击确认投递
    toudi() {
      this.$emit("qrtd", this.checked);
    },
    link(item) {
      this.$router.push({path: "/user/resume",query:{sftd:"1"}});
    }
  }
};
</script>
<style lang="scss" scoped>
@import "~common/scss/var.scss";
.confirm {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1003;
  background: $color-cover-bg;
  &.confirm-enter-active {
    animation: cover-fadein 0.3s;
    .container {
      animation: content-zoom 0.3s;
    }
  }
  &.confirm-leave-to {
    opacity: 0;
  }
  &.confirm-leave-active {
    transition: all ease 0.3s;
  }
  .close{
    position: absolute;
    top: 20%;
    left: 78%;
    height: 42px;
    width: 42px;
    text-align: center;
    line-height: 42px;
    color: #fff;
    border-radius: 21px;
    background-color: #444;
    font-size: 26px;
    z-index: 1005;
  }
}
//弹框内容
.container-wrap {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: $width-275 * 2;
  height: $height * 2;
}
.container {
  overflow: hidden;
  border-radius: $radius-base;
  background-color: $color-white;
  position: relative;
  text-align: center;
  line-height: 1.5;
  height: 100%;
  background: url("~common/images/jlpic.png") center center no-repeat;
  background-size: 100%;
  .container-cen {
    width: $width-box * 2;
    height: $height-input * 2;
    margin: $margin-box;
    background-color: #fff; //删除
    .person_pic {
      width: $width-img * 2;
      height: $height-img * 2;
      margin-top: $margin-top * -5;
    }
    .span_xm {
      width: 60%;
      height: 28px;
      line-height: 28px;
      overflow: hidden;
      display: inline-block;
      font-size: $font-size-small;
      color: #333333;
      font-weight: 700;
      vertical-align: middle;
    }
    .span_xq {
      font-size: $font-size-small;
      color: #6699ff;
      font-weight: 700;
    }
    .apply_post {
      margin: 0 auto;
      margin-top: $margin-top;
      margin-bottom: $margin-top;
      font-size: $font-size;
      color: #666666;
      height: $height-gw * 2;
      position: relative;
      .span_ypgw {
        height: 100%;
        line-height: 100%;
        width: $width * 12;
        display: inline-block;
        font-size: $font-size;
        color: #666666;
        position: absolute;
        top: 4%;
        left: 10%;
      }
      .span_gw {
        width: $width * 16;
        display: inline-block;
        font-size: $font-size;
        margin-left: $margin-top * 16;
        color: #666666;
        overflow: hidden; /*自动隐藏文字*/
        text-overflow: ellipsis; /*文字隐藏后添加省略号*/
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
    }
  }
  .btn-sure {
    width: $width-sure * 2;
    height: $height-sure * 2;
    color: #ffffff;
    line-height: $height-sure * 2;
    text-align: center;
    font-size: $font-size-sure * 2;
    margin: $margin-top auto;
    // border-radius: $radius-base4;
    border: none;
    box-sizing: border-box;
    background: linear-gradient(90deg, #3b5bea, #5786ff);
    border-radius: $height-sure * 2;
    // background: url("~common/images/qrtd.png") center center no-repeat;
    // background-size:100%;
  }
  .remind {
    width: $width * 20;
    height: $height-label * 3;
    line-height: $height-label * 3;
    text-align: center;
    margin: $margin-top * 2 auto;
    color: #999999;
    font-size: $font-size-ts * 2;
    .input_taday {
      width: $width * 2;
      height: $height-label * 2;
      margin-right: $margin-left;
      display: inline-block;
      border: 1px solid #0066ff;
      box-sizing: border-box;
    }
    .weui-cells {
      padding: 0;
      .weui-cell__hd {
        margin-right: 0;
        padding-right: 0;
      }
      .weui-icon-checked {
        margin-bottom: 10px;
      }
      .weui-icon-checked::before {
        font-size: $font-size-ts * 3;
      }
      .weui-cell__bd {
        p {
          font-size: $font-size-ts * 2;
        }
      }
    }
    .weui-cells:after {
      content: " ";
      border-bottom: none;
    }
    .weui-cells:before {
      content: " ";
      height: 0;
      border-top: none;
    }
  }
}
</style>
